package com.xrs.xrseducation.order.controller;


import com.xrs.xrseducation.order.entity.Order;
import com.xrs.xrseducation.order.service.IOrderService;
import com.xrs.xrseducation.order.service.impl.OrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2020-09-18
 */
@RestController
@RequestMapping("/order/order")
public class OrderController {
    @Autowired
    private OrderServiceImpl orderService;

    @RequestMapping("/add.do")
    @ResponseBody
    public void add(Order order){
        orderService.addOrder(order);
    }
    @RequestMapping("/delOrder.do")
    @ResponseBody
    public void delOrder(String serid){
        orderService.delOrder(serid);
    }


}
